<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/6/29
  Time: 17:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>修改班级</title>
    <style>
        .ddd{
            width: 400px;
            height:500px;
            margin-left: 200px;
            margin-top: 100px;
        }

        select{
            width: 200px;
            height: 30px;
        }
        span{
            font-family: "楷体";
            font-size: 24px;
        }
        #ddddd{
            float: right;
            margin-top: -70px;
        }

    </style>
</head>
<body>
<div id="ddddd">
    <span>班级id&nbsp;&nbsp;</span><select id="sel" name="id">
        <c:forEach items="${list}" var="k">
            <option>${k}</option>
        </c:forEach>
    </select>
</div>
    <div class="ddd">

    </div>

</body>
<script type="text/javascript" src="/js/jquery.min.js" ></script>
<script>
    $(function(){
        $("#sel").change(function(){
           $(".ddd").load("http://localhost:9090/class/selectById?id="+$(this).val()+"");
        })
    })
</script>
</html>
